// ============================== 导入依赖 ============================== //

import * as echarts from 'echarts'

// ============================== 导出配置 ============================== //

export default {
  tooltip: {
    trigger: 'item',
  },
  xAxis: {
    data: [],
    // boundaryGap: false,
    axisTick: {
      show: false,
    },
  },
  yAxis: {
    minInterval: 1,
    axisLine: {
      show: false,
    },
    axisTick: {
      show: false,
    },
    axisLabel: {
      color: '#666',
    },
  },
  grid: {
    top: '10%',
    left: '2%',
    right: '3%',
    bottom: '0',
    containLabel: true,
  },
  series: [
    {
      type: 'line',
      smooth: 0.3,
      data: [],
      symbolSize: 8,
      showSymbol: false,
      itemStyle: {
        color: '#2B74E5',
      },
      lineStyle: {
        width: 3,
        color: '#2B74E5',
      },
      areaStyle: {
        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
          { offset: 0, color: '#2B74E5' },
          { offset: 1, color: '#fff' },
        ]),
      },
    },
    {
      name: '临时车',
      stack: 'total',
      data: [],
      type: 'bar',
      zlevel: 1,
      showSymbol: false,
      barWidth: 10,
      itemStyle: {
        color: '#93BCE8',
      },
      tooltip: {
        trigger: 'item',
      },
    },
    {
      name: 'VIP',
      stack: 'total',
      data: [],
      type: 'bar',
      zlevel: 1,
      showSymbol: false,
      barWidth: 10,
      itemStyle: {
        color: '#FFC955',
      },
      tooltip: {
        trigger: 'item',
      },
    },
  ],
}
